package iosr11.data;

import java.util.List;

public class TeacherImpl implements Teacher{

	private String id;
	private String name;
	private String email;
	private List<String> groups;
	private boolean isLecturer;
	
	@Override
	public String getId() {
		return id;
	}

	@Override
	public void setId(String id) {
		this.id = id;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String getEmail() {
		return email;
	}

	@Override
	public void setEmail(String email) {
		this.email = email;
	}

	@Override
	public List<String> getGroups() {
		return groups;
	}

	@Override
	public void setGroups(List<String> groups) {
		this.groups = groups;
	}

	@Override
	public boolean isLecturer() {
		return isLecturer;
	}

	@Override
	public void setLecturer(boolean isLecturer) {
		this.isLecturer = isLecturer;
	}

	public TeacherImpl(){
		
	}
	
	public TeacherImpl(String name, String email, List<String> groups, String id, boolean isLecturer){
		this.id = id;
		this.name = name;
		this.email = email;
		this.groups = groups;
		this.isLecturer = isLecturer;
	}
	
	public String toString(){
		StringBuffer buf = new StringBuffer();
		buf.append("Dane nauczyciela:\n");
		buf.append(id);
		buf.append("\n");
		buf.append(name);
		buf.append("\n");
		buf.append(email);
		buf.append("\n");
		buf.append(isLecturer);
		buf.append("\n");
		return buf.toString();
	}
}
